#include <QCoreApplication>
#include <iostream>
using namespace std;

int main(int argc, char *argv[])
{
    QCoreApplication w(argc, argv);
    int i=0;
    cout<<"A: ";
    int a;
    cin>>a;
    if(a>=0)
    i++;
    cout<<"B: ";
    int b;
    cin>>b;
    if(b>=0)
    i++;
    cout<<"C: ";
    int c;
    cin>>c;
    if(c>=0)
    i++;
    cout<<"Kolichestvo polozitelnih: "<<i;
    return w.exec();
}
